package com.azier.kapacitor.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 1 * @Author: luoj
 * 2 * @Date: 2019/8/28 11:11
 * 3
 */
public enum Status {

    ENABLED("enabled", "启动中"), DISABLED("disabled", "未启动");

    private String name;

    private String desc;

    private Status(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    @JsonValue
    public String getName() {
        return name;
    }

    public String getDesc() {
        return desc;
    }

    @JsonCreator
    public void setName(String name) {
        this.name = name;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

}
